package com.zgh.manager.module;

import com.xxg.util.SystemProperty;

import java.io.Serializable;


public class AutoTaskLog implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public static final String TASK_RUN_ACTION_START="启动";
	public static final String TASK_RUN_ACTION_END="结束";
	public static final String TASK_RUN_MODE_HAND="手工";
	public static final String TASK_RUN_MODE_AUTO="自动";
	
	private Long id;				//id
	private long taskId;			//任务id
	private String time;			//执行时间
	private String action;			//动作（开始或者结束）
	private String result;			//结果（成功或者失败）
	private String content;			//执行内容
	private String message;		//错误信息
	private String runMode;		//启动方式（自动或者手动）
	
	
	//以下信息不存数据库
	private String systemName= SystemProperty.getProperty("systemName");		//系统名称
	private String taskName;		//任务名称
	private int clusterNode=Integer.parseInt(SystemProperty.getProperty("clusterNode"));	//集群节点
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public long getTaskId() {
		return taskId;
	}
	public void setTaskId(long taskId) {
		this.taskId = taskId;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getRunMode() {
		return runMode;
	}
	public void setRunMode(String runMode) {
		this.runMode = runMode;
	}
	public String getSystemName() {
		return systemName;
	}
	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public int getClusterNode() {
		return clusterNode;
	}
	public void setClusterNode(int clusterNode) {
		this.clusterNode = clusterNode;
	}
	
	
}
